﻿namespace GCC.Container.Abstracts
{
    /// <summary>
    /// 容器登陆请求
    /// </summary>
    public class GCCLoginRequest
    {
        /// <summary>
        /// 类型
        /// </summary>
        public int Type { get; set; }
        /// <summary>
        /// OpenKey
        /// </summary>
        public string OpenKey { get; set; } = "";
        /// <summary>
        /// OpenID
        /// </summary>
        public string OpenID { get; set; } = "";
        /// <summary>
        /// Token
        /// </summary>
        public string Token { get; set; } = "";
        /// <summary>
        /// 刷新密钥
        /// </summary>
        public string RefreshToken { get; set; } = "";
        /// <summary>
        /// 唯一ID
        /// </summary>
        public string UnionID { get; set; } = "";
        /// <summary>
        /// 缓存时间,为空则永不过期,这个是滑动式超时, 两种都填写则优先滑动窗口 如果都不填写,则不缓存
        /// </summary>
        public int? CacheSecond { get; set; }
        /// <summary>
        /// 缓存时间,为空则永不过期,这个是相对于当前的时间的固定超时
        /// </summary>
        public int? CacheToSeconds { get; set; }
    }
}
